package token

import "github.com/tidwall/gjson"

// TokenApi ...
type TokenApi interface {
	Get(s string) gjson.Result
	GetInt64(s string) int64
	GetByte(s string) []byte
	GetString(s string) string
	GetStruct(s string, source interface{}) error
	GetMap(s string) (map[string]interface{}, error)
	Set(s interface{}) (bool, error)
	SetInt(s int) (bool, error)
	SetInt32(s int32) (bool, error)
	SetByte(s []byte) (bool, error)
	SetString(s string) (bool, error)
	SetStruct(s interface{}) (bool, error)
	SetMap(s interface{}) (bool, error)
}
